package com.virxue.baseweb.controller;

import org.apache.commons.lang.math.RandomUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName RedirectController
 * @Description sendirect测试
 *
 * @author sunhaojie 3113751575@qq.com
 * @date 2016年5月30日 下午7:51:52
 */
@Controller
public class RedirectController {

    @RequestMapping("redirect")
    public String test() {
        return String.format("redirect:http://ucenter.console.ksyun.com/index.html#!/account?ret=%d",
            RandomUtils.nextInt());
    }
}
